import { getlist } from "@/service/user";
import { useEffect, useState } from "react";

export function useGetUserList(type) {
  let [list, setList] = useState([]);
  useEffect(() => {
    getlist(type).then((res) => {
      setList(res.data);
    });
  }, []);
  return list;
}
